package org.dromara.erp.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 入库明细对象 erp_warehousing_info
 *
 * @author Mr Lei
 * @date 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("erp_warehousing_info")
public class ErpWarehousingInfo extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @NotNull(message = "ID不能为空",groups = {EditGroup.class})
    @TableId(value = "id")
    private String id;

    /**
     *
     */
    private Long orderId;

    /**
     * 分类
     */
    private Long cateId;

    /**
     * 材料名称
     */
    private Long productId;

    /**
     * 材料规格
     */
    private Long productSpecId;
//    private String productSpecName;

    /**
     * 当前库存
     */
    private BigDecimal stock;

    /**
     * 数量
     */
    private BigDecimal amount;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 小计
     */
    private BigDecimal money;
    /*说明*/
    private String remark;


}
